# -*- coding: UTF-8 -*-
# @Create   : 2021/6/9 14:33
# @Author   : yh
# @Remark   : 项目配置
import logging
import os


class MxConfig:
    LOG_LEVEL = logging.INFO  # 日志等级
    LANGUAGES = ['zh_CN']  # 语言配置

    SECRET_KEY = 'g_*@^)u-3ll9sqw5-power%fh&_2ev+2@f3z)y=iyo#qi9x+zym_z'  # 密钥

    # 通用密文，当前端请求密码时返回此密文串、如果更新后还是此密文，则代表不需要修改数据库密码
    UNIVERSAL_PWD = 'AAAAAaaaaaBBBBBbbbbbCCCCCccccc'

    # 临时文件存储文件夹
    TMP_DIR = os.path.join(__file__.split('webexpress')[0], 'webexpress', 'hdoc', 'tmp') + os.sep

    # 数据库相关配置
    HOST = '127.0.0.1'
    PORT = 8123
    SERVER_PORT = 8888


    path_dir = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
    EXCEL_FILE_URI = os.path.join(path_dir, "hdoc/excel/")
